// 目标相关API
import request from './config.js';

// 获取目标列表
export function getGoalsList(params = {}) {
  return request('/goals/list', {
    method: 'GET',
    params
  });
}

// 获取目标详情
export function getGoalDetail(id) {
  return request(`/goals/${id}`, {
    method: 'GET'
  });
}

export default {
  getGoalsList,
  getGoalDetail
};


